<template>
  <div>
        <el-breadcrumb separator="/">
  <el-breadcrumb-item :to="{ path: '/index' }">首页</el-breadcrumb-item>
  <el-breadcrumb-item :to="{ path: '/myvip' }">当前页面</el-breadcrumb-item>
</el-breadcrumb>
 <el-container style="height: 500px; border: 1px solid #eee">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu :default-openeds="['1', '3']" router >
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>会员中心</template>
        <el-menu-item-group>
          <el-menu-item  @click="CheckVip">我的会员</el-menu-item>
          <el-menu-item index="1-2"  @click="CheckVip2">会员成长</el-menu-item>
           <el-menu-item index="1-3" @click="mywallet">钱包</el-menu-item>
        </el-menu-item-group>
 
      </el-submenu>

    </el-menu>
  </el-aside>
  
  <el-container>
    <el-header style="text-align: right; font-size: 12px">
      <el-dropdown>
        <i class="el-icon-setting" style="margin-right: 15px"></i>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>查看</el-dropdown-item>
          <el-dropdown-item>新增</el-dropdown-item>
          <el-dropdown-item>删除</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
     <span>欢迎,尊敬的VIP{{leave}}会员</span>
    </el-header>
    
   <el-card class="box-card">
  <div class="text item">
      <div>
      <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar><span class="color">我的余额:{{account}}元</span>
    </div>
      <div>
      <el-avatar icon="el-icon-sugar"></el-avatar><span  class="color">保证金:{{guartantee}}</span><el-button type="primary" round @click="open" :dangerouslyUseHTMLString="zfb">我要充钱</el-button>
    </div>
  </div>
</el-card>
  </el-container>
</el-container>
  </div>
</template>

<script>
  export default {
    
    name:'money',
    //  components:{
       
    //  },
    data() {
      return {
        tableData: '',
        doregister:false,
        showIntables1: true, 
        test:0,
        leave:1,
        account:0,
        guartantee:0,
        zfb:true
      }
    },
      methods:{
        CheckVip(){
            this.$router.push({path:'/myvip'});
        },
        CheckVip2(){
             this.$router.push({path:'/myvip_leave'});
        },
      mywallet(){
          this.account=sessionStorage.getItem("account");
            this.guartantee=sessionStorage.getItem("guartantee");
            console.log(this.account);
          this.$router.push({path:'/money'});
      },

      open() {
        this.$alert('<div><img width="70%" src="http://192.168.50.27:8000/@Y)RZ2AV2MFK7_PEQ)96@RL.jpg"/></div>', '大爷赏点吧', {
          dangerouslyUseHTMLString: this.zfb
        });
      },
      }
  };
</script>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
      .text {
    font-size: 10px;
  }

  .item {
    padding: 1px 0;
  }

  .box-card {
    width: 1300px;
    margin: 20px;
  }
  .color{
    font-size:20px Extra large;
     color:#67C23A;
  }
</style>
